﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using ECCIT;
using OgilvyOne.UKNow.BLL;

public partial class MapInterface : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.ContentType = "text/xml";
        Response.ContentEncoding = Encoding.UTF8;

        string output = string.Empty;
        try
        {
            ResultInfo valRes = ValidateArguments();
            string sLangID = Request.Params["lang"];
            int langID = (string.IsNullOrEmpty(sLangID)) ? 2052 : int.Parse(sLangID);
            langID = 2052;  // 2012-02-21 李均说关键字不分中英文
            if (valRes.Result)
            {
                LogMapKeyWordsBLL bll = new LogMapKeyWordsBLL(langID);
                output = bll.GetKeywordsXml();
            }
        }
        catch (Exception ex)
        {
            
        }
        //output = "<result>0</result>";
        Response.Write("<?xml version=\"1.0\" encoding=\"utf-8\" ?>" + output);
    }

    private ResultInfo ValidateArguments()
    {
        return new ResultInfo(true);
    }
}